import httpInstance from '../utils/http'
export const loginAPI = ({account, password}) => {
    return httpInstance({
        url: '/login',
        method: 'POST',
        data: {
            account:account,
            password:password
        }
    })

}

export const registerAPI = ({account, nickname, password}) => {
    return httpInstance({
        url: '/register',
        method: 'POST',
        data: {
            account:account,
            nickName:nickname,
            password:password
        }
    })
}

export const getLikeListAPI = ({ limit = 4 }) => {
  return httpInstance({
    url:'/member/goods/relevant',
    params: {
      limit
    }
  })
}
export const getUserInfoAPI = (account) => {
  return httpInstance({
    url: '/user/info',
    params: { account }
  });
};
